package com.zhao.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Chat {
    @TableId(type = IdType.AUTO)
    private Integer id;// 编号
    private Integer uid;// 发送者
    private Integer cid;// 接收者
    private String content;// 内容
    private Integer look; //0未读1已读
    @TableLogic //逻辑删除注解
    private Integer deleted;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
}
